package com.ruoyi.hxf.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 教育摘要表 f_education_summary
 *
 * @author hxf
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("f_education_summary")
public class Education extends BaseEntity {
    /**
     * 摘要ID
     */
    @TableId(value = "education_id")
    private Long educationId;

    /**
     * 摘要标题
     */
    @Xss(message = "摘要标题不能包含脚本字符")
    @NotBlank(message = "摘要标题不能为空")
    @Size(min = 0, max = 50, message = "摘要标题不能超过50个字符")
    private String educationTitle;


    /**
     * 摘要内容
     */
    private String educationContent;

    /**
     * 摘要状态（0正常 1关闭）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 图片
     */
    private String educationPicture;

    /**
     * 图片路径
     */
    private String educationUrl;

    /**
     * 是否删除（显示=0,不显示=1）
     */
    private String isDelete;
}
